package cn.wolfcode.crm.serivce;

import cn.wolfcode.crm.domain.Menu;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IMenuService {
    void deleteByPrimaryKey(Long id);
    void saveOrUpdate(Menu record);
    Menu selectByPrimaryKey(Long id);
    PageResult query(QueryObject qo);
    List<Menu> selectAll();
    //查询父菜单子菜单
    List<Menu> selectRootMenu();


    List<Long> selectByRoleId(Long roleId);

    List<Menu> selectEmployeeMenu();
}
